'use strict';  

module.exports = {  
  up: async (queryInterface, Sequelize) => {  
    await queryInterface.createTable('statuses', {  
      id: {  
        type: Sequelize.INTEGER,  
        autoIncrement: true,  
        primaryKey: true  
      },  
      name: {  
        type: Sequelize.STRING(50),  
        allowNull: false,  
        unique: true  
      },  
      created_at: {  
        type: Sequelize.DATE,  
        defaultValue: Sequelize.literal('CURRENT_TIMESTAMP')  
      },  
      updated_at: {  
        type: Sequelize.DATE,  
        defaultValue: Sequelize.literal('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP')  
      }  
    });  
  },  

  down: async (queryInterface, Sequelize) => {  
    await queryInterface.dropTable('statuses');  
  }  
};  